Provide type-based quick info on symbol-less nodes#3022
Provide type-based quick info on symbol-less nodes#3022jakebailey merged 1 commit intomicrosoft:mainfrom
Conversation
| // | ---------------------------------------------------------------------- | ||
| // | No quickinfo at /**/. | ||
| // | ```tsx | ||
| // | any |
There was a problem hiding this comment.
this one doesn't resolve correctly but it's a separate issue
|
Unfortunately, this isn't the right way to fix the issue. We already have infrastructure in place that creates synthetic symbols for index-signature-based property and element accesses (see |
82765e5 to
0d189eb
Compare
|
is this still needed after #3018? |
|
This is kind of a pure port from Strada - you can see how a bunch of |
|
Hmm, as I said above, I don't think this code is right--even if it was in Strada. Some of those tests change quick info on an error location from displaying nothing to displaying |
|
As a user, that displayed |
|
Yes, I would tend to agree, that if we are hovering on an identifier-y thing, we need to display something... |
|
I gotta say I disagree here. If the type returned from |
|
To some extent, it's about cross-location consistency: function test(o: unknown) {
// ^? function test(o: unknown): any
return o.foo
// ^? any
} |
No description provided.